class Result {
    code;
    message;
    data;
    constructor(code, message, data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    static fromJson(json){
        json = JSON.parse(json);
        return new Result(json.code, json.message, json.data);
    }
}


export default Result;
